package com.shilei.abstractFactory;

/**
 * @description:
 * @author: 81271
 * @date: 2020-04-12 17:12
 */
public class Main {
    public static void main(String[] args) {
        AbstractFactory abstractFactory = new ModernFactory();
        abstractFactory.createWeapon().used();
        abstractFactory.createFood().eat();


        AbstractFactory abstractFactory2 = new MagicFactory();
        abstractFactory2.createWeapon().used();
        abstractFactory2.createFood().eat();
    }
}
